<%@ page language="java" contentType="text/html; charset=UTF-8"  
    pageEncoding="UTF-8"%>  

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">  
<html>  
  
<head>  
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
<title>Add Questionnaire</title>
</head>  
<body>
<form action="addQuestionnaire.action" method="post" name="questionnaire">
    <label>Questionnaire Name:</label>
    <input type="text" name="questionnaireName" placeholder="Name" /><br/>
	<!-- <input id="deadlineDate" type="date" name="questionnaireDeadline" placeholder="Deadline" value="2017-4-26" /><br/> --> 
	<!-- <input type="date" name="questionnaireDeadline" placeholder="Deadline"/>  -->   
	<!-- <input type="text" name="questionnaireStatus" placeholder="Status"/> <br/>  -->
	<label>Questionnaire Status:</label>
		<select name="questionnaireStatus">
			<option value="1">Open</option>
			<option value="0">Closed</option>
		</select><br>
		<label>Questionnaire Category:</label>
		<select name="questionnaireCategory">
			<option value="1">人口普查类</option>
			<option value="2">上班路线类</option>
			<option value="3">业余时间类</option>
		</select><br>
		<label>Questionnaire Deadline:</label>
		<input type="date" name="questionnaireDeadline" placeholder="Deadline"/><br>
		<!-- <input type="text" name="questionnaireCategory" placeholder="Category"/> <br/>  -->    
    <input type="submit" value="Add " style="color: white; background-color: blue" />
</form>
<!-- <script>  
var str1 =document.getElementById("deadlineDate").text;
alert(str1);
var arr1 = str1.split("-");  
var date1 = new Date(arr1[0],parseInt(arr1[1])-1,arr1[2]);  
  
var str2 = "2009-8-4";  
var arr2 = str2.split("-");  
var date2 = new Date(arr2[0],parseInt(arr2[1])-1,arr2[2]);  
  
alert(date2);//true  
</script> -->
</body>  
</html>